package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 报警抑制表 实体类
 * 表名：ra_alarm_restrain
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_alarm_restrain")
public class RaAlarmRestrain implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 报警编码
     */
    @Column(name = "alarm_code", nullable = false, length = 32)
    private String alarmCode;
    
    /**
     * 报警位号
     */
    @Column(name = "alarm_bit_no", nullable = false, length = 128)
    private String alarmBitNo;
    
    /**
     * 报警配置类型
     * 默认值: 1
     */
    @Column(name = "alarm_config_type")
    private Byte alarmConfigType;
    
    /**
     * 抑制类型（1、单个 2、组合）
     * 默认值: 1
     */
    @Column(name = "restrain_type", nullable = false)
    private Byte restrainType;
    
    /**
     * 抑制备注
     */
    @Column(name = "remark", length = 1024)
    private String remark;
    
    /**
     * 抑制结束时间
     */
    @Column(name = "finish_time")
    private java.time.LocalDateTime finishTime;
    
    /**
     * 租户主键
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 状态(0、抑制 1、结束抑制)
     * 默认值: 0
     */
    @Column(name = "status")
    private Byte status;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaAlarmRestrain{" +
            "id=" + id +
            ", alarmCode=" + alarmCode +
            ", alarmBitNo=" + alarmBitNo +
            ", alarmConfigType=" + alarmConfigType +
            ", restrainType=" + restrainType +
            ", remark=" + remark +
            ", finishTime=" + finishTime +
            ", tenantId=" + tenantId +
            ", status=" + status +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 